package by.yakusekmaxim.bookgid.webapp.page.home.author;

import org.apache.wicket.MarkupContainer;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.ResourceModel;

import by.yakusekmaxim.bookgid.dataaccess.util.Filter;
import by.yakusekmaxim.bookgid.datamodel.Author;
import by.yakusekmaxim.bookgid.webapp.page.HomeLayout;

public class AuthorPage extends HomeLayout {
	private Filter<Author> filter;

	public AuthorPage() {
		filter = new Filter<Author>();
		filter.setEnabled(false);
		add(new Label("pageNameLabel", getPageTitle()));
		add(new AuthorListPanel("authorList", filter));
	}

	@Override
	protected MarkupContainer addPanel() {
		return null;
	}

	@Override
	protected IModel<String> getPageTitle() {
		return new ResourceModel("p.home.linkAutorPage");
	}

}
